import { axios } from '@/utils/request'

export function querySoldier (parameter) {
  return axios({
    url: '/person/query',
    method: 'post',
    data: parameter
  })
}

export function queryByUnit (parameter) {
  return axios({
    url: '/person/queryByUnit',
    method: 'post',
    data: parameter
  })
}

export function addSoldier (parameter) {
  return axios({
    url: '/person/add',
    method: 'post',
    data: parameter
  })
}

export function addSoldierList (parameter) {
  return axios({
    url: '/person/addList',
    method: 'post',
    data: parameter
  })
}

export function editSoldier (parameter) {
  return axios({
    url: '/person/update',
    method: 'post',
    data: parameter
  })
}

export function removeSoldier (parameter) {
  return axios({
    url: '/person/remove',
    method: 'post',
    data: parameter
  })
}

export function dataAsync (parameter) {
  return axios({
    url: '/person/dataAsync',
    method: 'post',
    data: parameter
  })
}

export function importBasic (parameter) {
  return axios({
    url: '/person/importBasic',
    method: 'post',
    data: parameter
  })
}

export function importExperience (parameter) {
  return axios({
    url: '/person/importExperience',
    method: 'post',
    data: parameter
  })
}

export function importRelation (parameter) {
  return axios({
    url: '/person/importRelation',
    method: 'post',
    data: parameter
  })
}

export function getSocialRelation (parameter) {
  return axios({
    url: '/socialRelation/getSocialRelation',
    method: 'post',
    data: parameter
  })
}

export function addSocialRelationList (parameter) {
  return axios({
    url: '/socialRelation/addSocialRelationList',
    method: 'post',
    data: parameter
  })
}

export function removeSocialRelation (parameter) {
  return axios({
    url: '/socialRelation/remove',
    method: 'post',
    data: parameter
  })
}

export function addSocialRelation (parameter) {
  return axios({
    url: '/socialRelation/add',
    method: 'post',
    data: parameter
  })
}

export function updateSocialRelation (parameter) {
  return axios({
    url: '/socialRelation/update',
    method: 'post',
    data: parameter
  })
}

export function getExperience (parameter) {
  return axios({
    url: '/experience/getExperience',
    method: 'post',
    data: parameter
  })
}

export function addExperienceList (parameter) {
  return axios({
    url: '/experience/addExperienceList',
    method: 'post',
    data: parameter
  })
}

export function removeExperience (parameter) {
  return axios({
    url: '/experience/remove',
    method: 'post',
    data: parameter
  })
}

export function uploadPersonImage (parameter) {
  return axios({
    url: '/person/uploadImage',
    method: 'post',
    data: parameter
  })
}

export function exportPerson (parameter) {
  return axios({
    url: '/person/exportPerson',
    method: 'post',
    responseType: 'blob',
    data: parameter
  })
}

export function updateExperience (parameter) {
  return axios({
    url: '/experience/update',
    method: 'post',
    data: parameter
  })
}

export function addExperience (parameter) {
  return axios({
    url: '/experience/add',
    method: 'post',
    data: parameter
  })
}

export function updatePersonOrder (parameter) {
  return axios({
    url: '/person/updateOrder',
    method: 'post',
    data: parameter
  })
}

export function setRetire (parameter) {
  return axios({
    url: '/person/setRetire',
    method: 'post',
    data: parameter
  })
}
